Telegram Group & Telegram Channel
Задача

Дан массив arr из N целых чисел, где значение arr[i] находится в диапазоне [1, N].

Необходимо найти все целые числа в диапазоне [1, N], которые не входят в исходный массив.

Входные данные: N == arr.length, 1 <= N <= 10^5.
Выходные данные: список пропущенных элементов

Ответ
10



tg-me.com/projavascript/111
Create:
Last Update:

Задача

Дан массив arr из N целых чисел, где значение arr[i] находится в диапазоне [1, N].

Необходимо найти все целые числа в диапазоне [1, N], которые не входят в исходный массив.

Входные данные: N == arr.length, 1 <= N <= 10^5.
Выходные данные: список пропущенных элементов

Ответ

BY Javascript Pro




Share with your friend now:
tg-me.com/projavascript/111

View MORE
Open in Telegram


Javascript Pro Telegram | DID YOU KNOW?

Date: |

The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.

A project of our size needs at least a few hundred million dollars per year to keep going,” Mr. Durov wrote in his public channel on Telegram late last year. “While doing that, we will remain independent and stay true to our values, redefining how a tech company should operate.

Javascript Pro from tw


Telegram Javascript Pro
FROM USA